package com.meet.dao;

import com.meet.entity.Meeting;
import com.meet.vo.MeetingConfirm;
import com.meet.vo.MeetingVo;

import java.sql.SQLException;
import java.sql.Timestamp;
import java.util.List;

/**
 * @Author LiDianyang
 * @Date 2022/8/11 21:08
 * @PackageName:com.meet.dao
 * @ClassName: MeetingDao
 * @Description: TODO
 * @Version 1.0
 */
public interface MeetingDao {
    /**
     * 返回的是插入这行的id
     * @param meeting
     * @return
     * @throws SQLException
     */
    public int addMeeting(Meeting meeting) throws SQLException;

    public int updateMeeting(Meeting meeting) throws SQLException;

    public int deleteMeeting(Integer id) throws SQLException;

    public List<MeetingVo> getMeetingCard(int page, int number) throws SQLException;

    public int getCount() throws SQLException;

    public MeetingVo getMeeting(Integer Id) throws SQLException;
    /**
     * @author King_of_hehe
     * @return
     * @throws SQLException
     */
    public List<Meeting> getAll() throws SQLException;

    /**
     * 李滇阳加的
     * @param tStart
     * @param tEnd
     * @return
     * @throws SQLException
     */
    public List<Meeting> getAllMeeting(Integer id,Timestamp tStart, Timestamp tEnd) throws SQLException;
    /**
     * 曾广龙写的
     */
    public List<MeetingConfirm> getMeetingConfirm(boolean tag, Integer mid) throws SQLException;

}
